<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户登录</title>
<script type="text/javascript">
	function changeCode(pic) {
		pic.src = pic.src + '?' + new Date().getTime();
	}
</script>
</head>
<body>
<!-- 包含主页 -->
<%@include file="/WEB-INF/module/user/public/header.jsp" %>

<div style="text-align:left;padding:100px 0 0 200px;">
	<form action="${pageContext.request.contextPath }/userLoginServlet.do" method="post">
		用户名: <input type="text" name="username">
			<span style="color:red">${errors.username }</span><br/><br/>
		密码: <input type="password" name="password"> 
			<span style="color:red">${errors.password}</span><br /><br/>
		校验码: <input type="text" name="code" /> <img alt="验证码" 
				src="${pageContext.request.contextPath}/codeGenerateServlet.do" onclick="changeCode(this)">
				<span></span><br/><br/>
			<input type="submit" value="登录">
	</form>
</div>
</body>
</html>